#ifndef __KPF_ADDR_H__
#define __KPF_ADDR_H__

#include "net_api.h"

#include <string>

#include "KPF_Object.h"

class KPF_Addr : public KPF_Object
{
public:
	KPF_Addr( void );

	KPF_Addr( const char *pIP, const int16u_t iPort, const int16u_t iLocalPort );
	
	virtual ~KPF_Addr( void );
	
	std::string getIP( void );
	int16u_t getPort( void );
	int16u_t getLocalPort( void );
	
	CNetAddr *getAddr( void );
	
	void setAddr( const CNetAddr *pNetAddr );
	
protected:

private:
	CNetAddr m_NetAddr;
};


#endif/* __KPF_ADDR_H__ */
